<?php

use Illuminate\Database\Seeder;

class AntUserTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        factory(App\User::class, 1000)->create()->each(function($user) {
            DB::table('game_ant_user')->insert([
                'uid'=>$user->id,
                'avatar'=>$user->avatar,
                'nickname'=>$user->nickname,
                'level'=>1
            ]);

        });
    }
}
